neuron Carrier Experience API
Errors
β οΈ Error Handling Guide β Neuron Carrier Experience API
This page explains the different error types you may encounter when interacting with the Neuron Carrier Experience API.
Each error includes an HTTP status code, an optional custom Neuron error code, and a descriptive message to help diagnose issues quickly.
π§© Error Codes Overview
| HTTP Status | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 405 | Method Not Allowed |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
| 502 | Bad Gateway |
| 503 | Service Unavailable |
| 504 | Gateway Timeout |
π οΈ Error Response Structure
Most errors follow a standard Neuron error format (except some 401 responses):
{
"code": "carrier_id_mismatch",
"message": "Carrier Id mismatch. Seek admin support",
"timestamp": "2023-07-05T12:25:15.283Z",
"correlationId": "d714a266-b58a-4af3-b42c-4ca2bc90ce8b",
"source": {
"name": "carrier-experience-api-v1",
"layer": "API_EXPERIENCE"
}
}π Detailed Error Explanations
β 400 β Bad Request
Returned when the request is malformed or missing required data.
{
"code": "bad_request",
"message": "Bad Request. Multiple error types detected, see causes for more details",
"timestamp": "2023-07-05T12:23:41.046Z",
"correlationId": "f6336636-cfad-49b8-87b7-b9954f04c925",
"source": {
"name": "carrier-experience-api-v1",
"layer": "API_EXPERIENCE"
},
"causes": [
{
"code": "data_validation",
"message": "/exposure required key not found"
}
]
}π 401 β Unauthorized
Returned when authentication fails.
{ "error": "Invalid Client Id" }
{ "error": "Invalid Token" }
{ "error": "Authentication denied." }β οΈ 401 responses do not use the standard error structure.
π« 403 β Forbidden
Returned when authentication succeeds but the caller does not have access rights.
{
"code": "carrier_id_mismatch",
"message": "Carrier Id mismatch. Seek admin support",
"timestamp": "2023-07-05T12:25:15.283Z",
"correlationId": "d714a266-b58a-4af3-b42c-4ca2bc90ce8b",
"source": {
"name": "carrier-experience-api-v1",
"layer": "API_EXPERIENCE"
}
}π 404 β Not Found
Returned when a referenced carrier-related resource cannot be located.
{
"code": "carrier_not_found",
"message": "No carrier found with details provided.",
"timestamp": "2023-07-05T12:24:31.987Z",
"correlationId": "57aa32cc-9361-45a4-b19e-5436831bf22a",
"source": {
"name": "carrier-experience-api-v1",
"layer": "API_EXPERIENCE"
}
}π§ 405 β Method Not Allowed
Returned when the HTTP method is not supported.
β±οΈ 429 β Too Many Requests
Returned when rate limits are exceeded.
{ "error": "Quota has been exceeded" }π₯ 500 β Internal Server Error
General server-side failure.
π 502 β Bad Gateway
Returned when an upstream dependency fails.
π 503 β Service Unavailable
Used during system downtime, outages, or temporary unavailability.
β³ 504 β Gateway Timeout
Returned when a downstream service takes too long to respond.
π§ Custom Neuron Error Codes
Updated to replace all βriskβ references with βcarrier.β
| HTTP Status | Custom Code | Meaning |
|---|---|---|
| 404 | carrier_not_found | No matching carrier found |
| 403 | carrier_id_mismatch | Carrier ID mismatch |
| 503 | carrier_service_unavailable | Carrier service unavailable |
| 504 | carrier_timeout | Carrier service timeout |
Example
{
"code": "carrier_id_mismatch",
"message": "Carrier Id mismatch. Seek admin support",
"timestamp": "2023-07-05T12:25:15.283Z",
"correlationId": "d714a266-b58a-4af3-b42c-4ca2bc90ce8b",
"source": {
"name": "carrier-experience-api-v1",
"layer": "API_EXPERIENCE"
}
}π Troubleshooting
If you encounter an error not listed here or need further help:
π© Contact support.neuron@wtwco.com
Include your correlationId for faster diagnostics.